from flask import Flask
from config import Config
app=Flask(__name__)
# 跨域配置
from flask_cors import CORS
CORS(app)
# 加载配置文件
app.config.from_object(Config)
# 注册分类蓝图
from cate import bp_cate
app.register_blueprint(bp_cate)
# 注册商品蓝图
from good import bp_goods
app.register_blueprint(bp_goods)


if __name__=='__main':
    app.run()
